package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.remote.factory.RemoteAddRessFileFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        contextId = "RemoteAddressesFactory",
        value = ServiceNameConstants.ADDRESS_FILE,
        fallbackFactory = RemoteAddRessFileFactory.class,
        path = "/eduvod/video"
)
public interface RemoteAddRessFileService {
    // 确保 @PathVariable 注解中的参数正确
    @DeleteMapping("removeAlyVideo/{id}")
    public Result removeAlyVideo(@PathVariable("id") String id);  // 确保指定路径变量名
}

